home *** CD-ROM | disk | FTP | other *** search
- on(press){
- tellTarget("_root.4")
- {
- gotoAndPlay(1);
- }
- i = _root.index;
- set("_root.userArray[" + i + "]",4);
- if(eval("_root.userArray[" + i + "]") eq eval("_root.computerArray[" + i + "]"))
- {
- trace("true");
- _root.userIndex += 1;
- _root.index += 1;
- _root.score = _root.count * _root.count;
- }
- else
- {
- gotoAndStop(30);
- }
- trace(_root.userIndex);
- trace(_root.count);
- if(_root.userIndex < _root.count)
- {
- trace("out");
- }
- else
- {
- _root.p = 1;
- _root.index = 1;
- _root.userIndex = 0;
- gotoAndPlay(15);
- }
- }
-